package com.tobby.camelinaction.scala.javacontext

import org.apache.camel.scala.dsl.builder.RouteBuilder

/**
 * A Camel Router using the Scala DSL
 */
class MyRouteBuilder extends RouteBuilder {
   
   // a route using Scala blocks
   "timer://foo?period=2s" ==> {
      setBody("simple test")
      to("log:simple")
   }
}